package com.bw.service.impl;

import com.bw.controller.Result;
import com.bw.domain.Section;
import com.bw.mapper.SectionMapper;
import com.bw.service.SectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SectionServiceImpl implements SectionService {

    @Autowired
    SectionMapper sectionMapper;
    @Override
    public List<Section> list1(Section section) {
        return sectionMapper.list1(section);
    }


    @Override
    public boolean add(Section section) {
        return sectionMapper.add(section);
    }

    @Override
    public boolean uplore(Section section) {
        return sectionMapper.uplore(section);
    }

    @Override
    public boolean remove(Integer deptId) {
        return sectionMapper.remove(deptId);
    }

    @Override
    public List<Section> list() {
        return sectionMapper.list();
    }

    @Override
    public Section deptGetDept(Integer id) {
        return sectionMapper.deptGetDept(id);
    }

    @Override
    public List<Section> deptList() {
        return sectionMapper.deptList();
    }

    @Override
    public void insertUsers(Section section) {
        sectionMapper.insertUsers(section);
    }
}
